<!-- 作者 : liandyao 公司: yidu -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/res/js/jquery-3.4.1.min.js"></script>
    <script>

        $(function (){
            let userInfo = sessionStorage.getItem("userInfo");
            console.info("是:"+userInfo);
            if(userInfo==null || userInfo == ''){
                location.href="/pages/login2.html";
            }
            //转换成对象
            let user = JSON.parse(userInfo);
            $("#userName").html(user.usName);
        });
    </script>
</head>
<body>
    欢迎你,<h1 id="userName"></h1>
<a href="/pages/flType/list.html">类型</a>
    <a href="/pages/flower/listUpload.html">鲜花</a>
</body>
</html>